/* 获取非行内样式 */

let yangsi = (yuan, yang) => {
    let a;
    // let yu = document.querySelector("yuan");
    if (yuan.currentStyle) {
        a = yuan.currentStyle[yang];
    }
    else {
        a = window.getComputedStyle(yuan)[yang];
    }
    // return a;
    console.log(a)
}

let shijian = (yuan, type, shi) => {
    // let yu = document.querySelector("yuan");
    if (yuan.addEventListener) {
        yuan.addEventListener(type, () => {
            shi()
        })
    }
    else {
        yuan.attachEvent("on" + type, () => {
            shi()
        })
    }
    // return a;

}

